<template>
  <div class="detail-pay-box" :class="ticketMode ? 'show' : 'hide'">
    <div class="flex-col">
      <span class="font_6 text_15">收银交班单</span>
      <div class="flex-row justify-between items-center group_17">
        <span class="font_8">交班单号：</span>
        <span class="font_9">JB-20210730-001</span>
      </div>
      <div class="flex-col">
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">营业日期：</span>
          <span class="font_9">2029-07-30</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">首单开台时间：</span>
          <span class="font_9">2029-07-30 08:00:00</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">交班时间：</span>
          <span class="font_9">2029-07-30 23:00:00</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">交班人：</span>
          <span class="font_9">张婉文</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">账单数：</span>
          <span class="font_9">18</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">开台数量：</span>
          <span class="font_9">18</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">单均消费：</span>
          <span class="font_9">500.00</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">桌均消费：</span>
          <span class="font_9">500.00</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">消费人数：</span>
          <span class="font_9">500.00</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">人均消费：</span>
          <span class="font_9">500.00</span>
        </div>
        <div class="flex-row justify-between items-center group_18">
          <span class="font_8">收银站点：</span>
          <span class="font_9">收银机</span>
        </div>
      </div>
      <span class="font_8 text_70">优惠汇总</span>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">折扣</span>
        <span class="font_9">200.00</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">会员价</span>
        <span class="font_9">200.00</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">抹零</span>
        <span class="font_9">10.00</span>
      </div>
      <div class="group_49">
        <div class="flex-row justify-between items-center">
          <span class="font_8">付款方式</span>
          <span class="font_8">笔数</span>
          <span class="font_8">支付合计</span>
        </div>
      </div>
      <div class="flex-col items-center text-wrapper_16">
        <span class="font_19">实收</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">现金：</span>
        <span class="font_9">1</span>
        <span class="font_9">400.00</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">微信：</span>
        <span class="font_9">1</span>
        <span class="font_9">1400.00</span>
      </div>
      <div class="flex-col items-center text-wrapper_16">
        <span class="font_19">虚收</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">代金券：</span>
        <span class="font_9">1</span>
        <span class="font_9">1400.00</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">宴请：</span>
        <span class="font_9">1</span>
        <span class="font_9">200.00</span>
      </div>
      <div class="flex-row justify-between items-center group_59">
        <span class="font_8">合计收入：</span>
        <span class="font_9">1</span>
        <span class="font_9">2200.00</span>
      </div>
      <div class="flex-row justify-between items-center group_60">
        <span class="font_8">会员充值</span>
        <span class="font_9">10000.00</span>
      </div>
      <!-- <template v-if="showDetailsEnum.isShowRechargeDetails"> -->
      <span class="font_8 text_101">充值明细</span>
      <div class="flex-row justify-between items-center group_62">
        <span class="font_19">会员名称</span>
        <span class="font_19">卡号</span>
        <span class="font_19">充值方式</span>
        <span class="font_19">金额</span>
      </div>
      <div class="flex-row justify-between items-center group_64">
        <span class="font_19">张三</span>
        <span class="font_2">131****1212</span>
        <span class="font_19">现金</span>
        <span class="font_2">10000.00</span>
      </div>
      <div class="flex-row justify-between items-center group_65">
        <span class="font_8">挂账回款</span>
        <span class="font_9">10000.00</span>
      </div>
      <!-- </template> -->
      <!-- <template v-if="showDetailsEnum.isShowCollectionDetails"> -->
      <div class="flex-col items-center text-wrapper_16">
        <span class="font_8">回款明细</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">回款账户</span>
        <span class="font_19">回款方式</span>
        <span class="font_19">回款账单</span>
        <span class="font_19">操作人</span>
      </div>
      <div class="space-x-line"></div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">李艳</span>
        <span class="font_19">微信</span>
        <span class="font_19">1225233</span>
        <span class="font_19">张婉文</span>
      </div>
      <div class="space-x-line"></div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">应交金额</span>
        <span class="font_9">21221.00</span>
      </div>
      <!-- </template> -->
      <!-- <template v-if="showDetailsEnum.isShowSettleAccountsDetails"> -->
      <div class="space-x-line"></div>
      <span class="font_8 text_106">结账汇总</span>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">结账人</span>
        <span class="font_19">金额</span>
      </div>
      <div class="space-x-line"></div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">张三</span>
        <span class="font_2">200.00</span>
      </div>
      <!-- </template> -->
      <!-- <template v-if="showDetailsEnum.isShowBillDetails"> -->
      <div class="space-x-line"></div>
      <span class="font_8 text_106">账单明细</span>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">账单</span>
        <span class="font_19">付款方式</span>
        <span class="font_19">消费金额</span>
      </div>
      <div class="space-x-line"></div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">20210807-0001</span>
        <span class="font_19">现金</span>
        <span class="font_19">200.00</span>
      </div>
      <!-- </template> -->
      <!-- <template v-if="showDetailsEnum.isShowCreditDetails"> -->
      <div class="space-x-line"></div>
      <span class="font_8 text_106">挂账明细</span>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">类型</span>
        <span class="font_19">账户名称</span>
        <span class="font_19">金额</span>
        <span class="font_19">操作人</span>
      </div>
      <div class="space-x-line"></div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">个人</span>
        <span class="font_19">张三</span>
        <span class="font_19">500.00</span>
        <span class="font_19">张婉文</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">公司</span>
        <span class="font_19">物流公司</span>
        <span class="font_19">300.00</span>
        <span class="font_19">张婉文</span>
      </div>
      <!-- </template> -->
      <!-- <template v-if="showDetailsEnum.isShowRecordDetails"> -->
      <div class="space-x-line"></div>
      <span class="font_8 text_106">反结记录</span>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">反结账号</span>
        <span class="font_19">反结人</span>
        <span class="font_19">原金额</span>
        <span class="font_19">反结金额</span>
      </div>
      <div class="space-x-line"></div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_19">20210807-0001</span>
        <span class="font_19">张婉文</span>
        <span class="font_19">500.00</span>
        <span class="font_19">100.00</span>
      </div>
      <div class="space-x-line"></div>
      <!-- </template> -->
      <!-- <div v-if="!showDetailsEnum.isShowRecordDetails" class="space-x-line"></div> -->
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">备用单</span>
        <span class="font_9">1000.00</span>
      </div>
      <div class="flex-row justify-between items-center group_18">
        <span class="font_8">交班人签字：</span>
        <span class="font_8">审核人签字：</span>
      </div>
    </div>
  </div>
</template>

<script setup>
// import { computed } from 'vue'
// import { useStore } from 'vuex'

// const store = useStore()
// const ticketMode = computed(() => store.getters.ticketMode)
</script>

<style lang="scss" scoped>
.detail-pay-box {
  width: 420px;
  height: 986px;
  background: #ffffff;
  // border: 1px solid #d2d2d2;
  box-sizing: border-box;
  padding: 30px;
  overflow-y: auto;
  .flex-row {
    display: flex;
    flex-direction: row;
  }

  .flex-col {
    display: flex;
    flex-direction: column;
  }

  .justify-start {
    justify-content: flex-start;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-end {
    justify-content: flex-end;
  }

  .justify-evenly {
    justify-content: space-evenly;
  }

  .justify-around {
    justify-content: space-around;
  }

  .justify-between {
    justify-content: space-between;
  }

  .items-start {
    align-items: flex-start;
  }

  .items-center {
    align-items: center;
  }

  .items-end {
    align-items: flex-end;
  }
  .text_15 {
    align-self: center;
    color: #353535;
  }
  .text_70 {
    margin-top: 20px;
    align-self: center;
  }
  .font_5 {
    font-size: 18px;
    font-family: PingFang SC Regular;
    color: #333333;
  }
  .font_2 {
    font-size: 14px;
    font-family: PingFang SC Regular;
    color: #333333;
  }
  .space-x-line {
    margin-top: 10px;
    width: 100%;
    border-top: solid 1px #e2e2e2;
  }
  .font_6 {
    font-size: 20px;
    font-family: PingFang SC Bold;
    font-weight: 700;
  }
  .font_8 {
    font-size: 14px;
    font-family: PingFang SC Bold;
    font-weight: 700;
    color: #333333;
  }
  .font_9 {
    font-size: 14px;
    font-family: PingFang SC Bold;
    font-weight: 700;
    color: #333333;
  }
  .group_17 {
    margin-top: 20px;
  }
  .group_18 {
    margin-top: 10px;
  }
  .group_49 {
    margin-top: 10px;
    padding-top: 20px;
    border-top: solid 1px #e2e2e2;
  }
  .group_59 {
    margin-top: 10px;
    padding: 10px 0;
    border-top: solid 1px #e2e2e2;
    border-bottom: solid 1px #e2e2e2;
  }
  .group_60 {
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: solid 1px #e2e2e2;
  }
  .group_62 {
    margin-top: 10px;
  }
  .group_65 {
    margin-top: 20px;
  }
  .group_64 {
    margin-top: 10px;
    padding: 10px 0;
    border-top: solid 1px #e2e2e2;
    border-bottom: solid 1px #e2e2e2;
  }
  .text_101 {
    margin-top: 12px;
    align-self: center;
  }
  .text_106 {
    margin-top: 20px;
    align-self: center;
  }
  .text-wrapper_16 {
    align-self: center;
    padding-top: 10px;
    margin-top: 10px;
    width: 100%;
    border-top: solid 1px #e2e2e2;
  }
}
//滚动条整体的大小
.detail-pay-box::-webkit-scrollbar {
  width: 6px !important;
  height: 0 !important;
}
//滚动条里滑动的滑块
.detail-pay-box::-webkit-scrollbar-thumb {
  height: 200px !important;
  background: #d2d2d2 !important;
  border-radius: 3px !important;
}
//滚动条底层样式
.detail-pay-box::-webkit-scrollbar-track {
  display: none !important;
}
</style>
